<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>01 Blog - 分类</title>
    <link rel="stylesheet" href="css/category.css">
</head>
<body>
    <div class="navbar">
        <div class="navbar-left">
            <h1>01 Blog</h1>
        </div>
        <div class="navbar-center">
            <a href="blog_list.html">首页</a>
            <a href="category.html">文章分类</a>
            <a href="tag.html">文章标签</a>
            <a href="blog_edit.html">写文章</a>
        </div>
        <div class="navbar-right" id="user-info">
            <!-- 用户信息将由 JavaScript 动态填充 -->
        </div>
    </div>
    <div class="container">
        <div class="category" onclick="redirectToDetail(1)">
            <div class="category-image">
                <img src="pic/前端.webp" alt="前端">
            </div>
            <div class="category-name">前端</div>
        </div>
        <div class="category" onclick="redirectToDetail(2)">
            <div class="category-image">
                <img src="pic/后端.webp" alt="后端">
            </div>
            <div class="category-name">后端</div>
        </div>
        <div class="category" onclick="redirectToDetail(3)">
            <div class="category-image">
                <img src="pic/数据库.webp" alt="数据库">
            </div>
            <div class="category-name">数据库</div>
        </div>
    </div>
    <script src="js/main.js"></script>
    <script src="js/category.js"></script>
</body>
</html>
